import request from '@/utils/request'

// 查询调整电价列表
export function listAdjustPrice(query) {
  return request({
    url: '/operator/adjustPrice/list',
    method: 'get',
    params: query
  })
}

// 查询调整电价详细
export function getAdjustPrice(id) {
  return request({
    url: '/operator/adjustPrice/' + id,
    method: 'get'
  })
}

// 新增调整电价
export function addAdjustPrice(data) {
  return request({
    url: '/operator/adjustPrice',
    method: 'post',
    data: data
  })
}

// 修改调整电价
export function updateAdjustPrice(data) {
  return request({
    url: '/operator/adjustPrice',
    method: 'put',
    data: data
  })
}

// 删除调整电价
export function delAdjustPrice(id) {
  return request({
    url: '/operator/adjustPrice/' + id,
    method: 'delete'
  })
}

// 导出调整电价
export function exportAdjustPrice(query) {
  return request({
    url: '/operator/adjustPrice/export',
    method: 'get',
    params: query
  })
}
// 获取站点电价
export function getInfoByStationApi(query) {
  return request({
    url: '/operator/adjustPrice/getInfoByStationCode',
    method: 'get',
    params: query
  })
}